﻿using System;
using System.Windows;
using ttg_internal.Utilities.Common;
using ttg_internal.Utilities.ParameterManager.View;
using ttg_internal.Utilities.ParameterManager.ViewModel;
using ttg_internal.utils;

namespace ttg_internal.Utilities.ParameterManager
{
    public class ParameterManager : UtilityBase, IUtility
    {
        public override string Description
        {
            get { return "ttgLib parameter manager utility"; }
        }

        public override string ExternalName
        {
            get { throw new NotImplementedException(); }
        }

        /// <summary>
        /// Creates and returns main View
        /// </summary>
        protected override Window CreateMainView(GlobalInfo globalInfo)
        {
            var mainView = new MainView();
            mainView.DataContext = new MainViewModel(mainView.Dispatcher, globalInfo);
            return mainView;
        }
    }
}
